package com.itcanteen.medical.patient.service.impl;

import com.itcanteen.medical.patient.entity.RechargeRecord;
import com.itcanteen.medical.patient.mapper.RechargeRecordMapper;
import com.itcanteen.medical.patient.service.RechargeRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: SixJin
 * @Date: 2020/12/16 21:14
 */
@Service
public class RechargeRecordServiceImpl implements RechargeRecordService {
    @Resource
    private RechargeRecordMapper rechargeRecordMapper;

    /**
     * 添加充值记录
     * @author 1804A-TeamOne
     * @date 2020-12-17 16:32
     * @param patientId 患者id
     * @param payMoney 支付金额
     */
    @Override
    public void addRechargeRecord(int patientId, Double payMoney) {
        rechargeRecordMapper.insert(new RechargeRecord(patientId,payMoney));
    }
}
